<?php /** @noinspection ALL */

namespace App\Containers\AppSection\Dadata\Actions;

use App\Containers\AppSection\Dadata\Models\Dadata;
use App\Containers\AppSection\Dadata\Tasks\FindDadataByIdTask;
use App\Containers\AppSection\Dadata\Tasks\IplocateDadataTask;
use App\Ship\Parents\Actions\Action;
use App\Ship\Parents\Requests\Request;

class IplocateDadataAction extends Action
{
    public function run(Request $request)
    {
        return app(IplocateDadataTask::class)->run($request->getInputByKey('ip'), $request->getInputByKey('kwargs'));
    }
}
